Skip to content

fix: GA4 CSP headers and CodeRabbit review fixes#32

Merged
MinitJain merged 4 commits intomainfrom
feat/google-analytics
Apr 21, 2026
Merged

fix: GA4 CSP headers and CodeRabbit review fixes#32
MinitJain merged 4 commits intomainfrom
feat/google-analytics

Conversation

@MinitJain
Copy link
Copy Markdown
Owner

Summary

  • Move <GoogleAnalytics> outside ThemeProvider to avoid re-renders (CodeRabbit)
  • Update privacy page to disclose GA4 cookies and link to Google opt-out (CodeRabbit)
  • Add www.googletagmanager.com to CSP script-src and google-analytics.com to connect-src so GA4 scripts are not blocked

Test plan

  • Visit production site, open devtools Console - no more CSP errors for googletagmanager.com
  • Check GA4 Realtime dashboard - should show active user within 30s

🤖 Generated with Claude Code

MinitJain and others added 3 commits April 21, 2026 22:28
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bonfire Ready Ready Preview, Comment Apr 21, 2026 5:31pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 21, 2026

Warning

Rate limit exceeded

@MinitJain has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 28 minutes and 12 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 28 minutes and 12 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: f660cd4c-7dea-4747-8e03-cc2b089a8307

📥 Commits

Reviewing files that changed from the base of the PR and between 76ba869 and bb33a08.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (5)
  • .env.local.example
  • app/layout.tsx
  • app/privacy/page.tsx
  • next.config.js
  • package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/google-analytics

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@MinitJain MinitJain merged commit 47bdb8c into main Apr 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant